
package com.yuhanginfo.modules.sys.entity;

import org.hibernate.validator.constraints.Length;

import com.yuhanginfo.common.persistence.DataEntity;

/**
 * 门店管理Entity
 * @author yangs
 * @version 2017-09-12
 */
public class StoreWarehouse extends DataEntity<StoreWarehouse> {
	
	private static final long serialVersionUID = 1L;
	private String storeCode;		// 门店号
	private String code;		// 仓库代码
	private String cnName;		// 仓库名称
	private String storeName;
	private String sysUserId;
	private String ordersCode;
	private String goodsCode;
	
	public StoreWarehouse() {
		super();
	}

	public StoreWarehouse(String id){
		super(id);
	}
	
	public String getGoodsCode() {
		return goodsCode;
	}

	public void setGoodsCode(String goodsCode) {
		this.goodsCode = goodsCode;
	}

	public String getSysUserId() {
		return sysUserId;
	}

	public void setSysUserId(String sysUserId) {
		this.sysUserId = sysUserId;
	}

	public String getOrdersCode() {
		return ordersCode;
	}

	public void setOrdersCode(String ordersCode) {
		this.ordersCode = ordersCode;
	}



	@Length(min=0, max=30, message="门店号长度必须介于 0 和 30 之间")
	public String getStoreCode() {
		return storeCode;
	}

	public void setStoreCode(String storeCode) {
		this.storeCode = storeCode;
	}
	
	@Length(min=0, max=50, message="仓库代码长度必须介于 0 和 50 之间")
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	
	@Length(min=0, max=50, message="仓库名称长度必须介于 0 和 50 之间")
	public String getCnName() {
		return cnName;
	}

	public void setCnName(String cnName) {
		this.cnName = cnName;
	}

	public String getStoreName() {
		return storeName;
	}

	public void setStoreName(String storeName) {
		this.storeName = storeName;
	}
	
}